package service;

import entity.Price;
import entity.Shopping;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingService{


    int deleteByPrimaryKey(Integer sid);

    int insert(Shopping record);

    int insertSelective(Shopping record);

    Shopping selectByPrimaryKey(Integer sid);

    int updateByPrimaryKeySelective(Shopping record);

    int updateByPrimaryKey(Shopping record);
    //根据获取随机数查询商品
    List<Shopping> getid(int sclassification);
    //根据sid查询数据
    Shopping idcx(int sid);
    //随机推荐商品
    List<Shopping> gettuijian();
    //添加商品至购物车
    int addShopping(Price price);
    //查询购物商品
    List<Price> getselect(int puserid);
    //修改商品
    int updel(int puserid,int pshoppingId,int pnum);
    //查询购物车商品
    List<Shopping> getlist(int uid);
    //删除购物车商品
    int getdelete(int pid);
    List<Shopping> list1(String chaname,int start, int pageSize);//查询显示信息
    int listzong(String chaname);//查询总数
    public Shopping xiulist( int id);//修改查信息显示
    int insert1( Shopping r);//添加信息
    int del1(int sid);//删除
}
